package main

import (
	"fmt"
	"math/big"
	"morleyStoneHome/service"
)

func main() {
	pkey := "9ed6f75cdceb3e83fc1612d23a820bcfb5d74e85421a1104e5fa207b9d37ac09"
	data := service.NewTypedData("0x6E3b0EE45856B1cfaedcc8876202e96353BAf51e", 0, big.NewInt(123))
	realPrivKey := service.StringToPriKey(pkey)
	signer := service.NewDefaultSigner(realPrivKey)
	sign, err := signer.SignTypedData(data)
	if nil != err {
		fmt.Println(err.Error())
	}
	fmt.Println(sign)

}
